﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            //Tager ta = new Tager();
            //ta.CryHello();
            //ta.EatHello();
            //ta.WalkHello();
            //ta.SleepHello();
            //ta.SeeHello();
            //Console.WriteLine("________________________________");
            //Eagle ea = new Eagle();
            //ea.CryHello();
            //ea.EatHello();
            //ea.WalkHello();
            //ea.SleepHello();
            //ea.Fly();




            Console.WriteLine("请选择要寄存的动物：1.老虎，2.老鹰");
            int key = int.Parse(Console.ReadLine());
            Ainimal a;
            switch (key)
            {
                case 1:
                    a = new Tager();
                    break;
                case 2:
                    a = new Eagle();
                    break;
                default:
                    Console.WriteLine("你不要乱选");
                    a = new Tager();
                    break;
            }
            PetStore ps = new PetStore();
            ps.ConsignAnimal(a);
        }
    }
}
